package tk.winshu.common.plugin;


/**
 * @author Kevin
 * @since 2019/10/06.
 */
public interface Interceptor {

    default Object plugin(Object target) {
        return Plugin.wrap(target, this);
    }

    Object intercept(Invocation invocation) throws Exception;

}
